#include "ext2stats.h"

Ext2stats::Ext2stats(QFile &_disk)
{
    disk = &_disk;
}

void Ext2stats::stats()
{
    c<<"\tDane statystyczne:"<<e<<e;
    c<<"\tRozmiar dysku: " << disk->size()<<e<<e;

    disk->seek(1024);

    char buf[1024];
    disk->read(buf,1024);

    s = new Superblock(buf);
    s->stat();


    b = new TableBlockGroupDes(s,disk);
    b->stats(disk, s->rozmiarBloku);
}



Ext2stats::~Ext2stats()
{
    delete s;
    delete b;
}


